home *** CD-ROM | disk | FTP | other *** search
- 0, In this demonstration you will see how to use the
- 4, Script Wizard in Visual InterDev to add script to
- 9, a Web page. The Script Wizard can create either
- 13, JScript or VBScript. To set the language used by the
- 18, Script Wizard, from the tools menu click Options.
- 23, From the HTML tab select either JScript or
- 28, VBScript for the Script Wizard and click OK. To start the
- 34, Wizard, on an HTML page right-click and select
- 39, Script Wizard. In the first pane the Script Wizard
- 45, includes a list of all the HTML and ActiveX
- 49, controls in the Web page. You can use this pane to find
- 54, the events that are supported by these controls. In
- 60, the second pane you can find the properties and
- 63, methods supported by the controls. For example, the
- 67, Command button has a click method and form, name,
- 71, and value properties. To create script with a
- 77, Script Wizard you can use either code view or list
- 82, view. In code view you enter code directly. For
- 88, example, I want to add code to the Spin Up button that
- 94, changes the value of the department. I'll select
- 98, the appropriate event, select code view, and I can
- 102, type my code directly here. I'll also add code to
- 119, a Command button to change the value of a text
- 122, box. I'll select the appropriate event and in this
- 126, case I'll use list view to show the differences. In
- 131, list view, rather than typing in the code directly,
- 135, you select an action to perform. For example,
- 138, I'll want to change the name of this text box so I'll
- 142, select the property I want to change and click
- 146, Insert Action. I'm prompted for a new value. The
- 156, Script Wizard will convert this to script when it's
- 159, inserted into my HTML file. I'll click OK and in
- 164, the HTML file notice I now have a script section
- 169, that was inserted by the Script Wizard and includes
- 173, the Spin Up event for my spin button. Down here on
- 178, my button, my HTML button, the Script Wizard has
- 182, added the script "ONCLICK" to change the name of
- 187, the text box. Let's preview this page and see how it
- 192, works. I can click the spin button to change the
- 204, value of the department and if I click this HTML
- 208, comand button a new name is entered into the text
- 212, box. So, in this demonstration you have seen how to
- 217, use the Script Wizard to view the events,
- 221, properties and methods supported by ActiveX and HTML
- 225, controls and how to add script using the Script Wizard
- 230, to an HTML page.
- 233, END